<?php
/**
 * Created by JetBrains PhpStorm.
 * User: zhouyang
 * Date: 13-9-06
 * Time: 下午4:31
 * To change this template use File | Settings | File Templates.
 */
class AdTimesModel extends Model{

    //获取对应推广的排期表
    public function getTimesByAdId($ad_id){
        return $this->dbreader()->getTimesByAdId($ad_id);
    }

    //添加推广排期信息
    public function addAdTimes($ad_id, $start_time,$end_time){
        return $this->dbreader()->addAdTimes($ad_id, $start_time,$end_time);
    }

    //删除推广排期信息
    public function delAdTimes($ad_time_id){
        return $this->dbreader()->delAdTimes($ad_time_id);
    }

    //根据推广编号删除推广排期信息
    public function delAdTimesByAdId($ad_id){
        return $this->dbreader()->delAdTimesByAdId($ad_id);
    }

    //修改推广排期信息
    public function updateAdTimes($ad_time_id, $start_time, $end_time){
        return $this->dbreader()->updateAdTimes($ad_time_id, $start_time, $end_time);
    }
}